<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>首页</title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link rel="stylesheet" type="text/css" href="/Public/Dt/libs/bootstrap/css/bootstrap.min.css"/>
		
		<link rel="stylesheet" type="text/css" href="/Public/Dt/css/base.css?v=0.0.3"/>
		<link rel="stylesheet" type="text/css" href="/Public/Dt/css/style.css?v=0.0.3"/>
		<link rel="stylesheet" type="text/css" href="/Public/Dt/css/moble.css?v=0.0.3"/>
		
	</head>
	<body>
		<div class="zhegai"></div>
		<div class="left_box">
			<div class="logo_box">
				<img src="/Public/Dt/img/pcLogo.png"/>
			</div>

			<div class="nav_box">
				<ul class="nav_contai">
					<li class="nav_list <?php if(checknav('index.html') == 1 ): ?>active<?php endif; ?>">
						<a href="index.html"><i class="nav_icon nav_shouye"></i>首页</a>
					</li>
					<li class="nav_list <?php if(checknav('hyzl.html') == 1 or checknav('xgzl.html') == 1 or checknav('czmm.html') == 1 or checknav('hyft.html') == 1 or checknav('sqtd.html') == 1): ?>active<?php endif; ?>">
						<a href="javascript:;"><i class="nav_icon nav_grzx"></i>用户资料<i class="jt"></i></a>
						<dl class="towlave" <?php if(checknav('hyzl.html') == 1 or checknav('xgzl.html') == 1 or checknav('czmm.html') == 1 or checknav('hyft.html') == 1 or checknav('sqtd.html') == 1): ?>style="display: block;"<?php endif; ?>>
							<dd><a href="/user/hyzl.html">会员资料</a></dd>
							<dd><a href="/user/xgzl.html">修改资料</a></dd>
							<dd><a href="/user/czmm.html">重置密码</a></dd>
							<dd><a href="/user/hyft.html">会员复投</a></dd>
							<dd><a href="/user/sqtd.html">申请退单</a></dd>
						</dl>
					</li>
					<li class="nav_list <?php if(checknav('zchy.html') == 1 or checknav('jbsj.html') == 1 or checknav('wdhy.html') == 1 ): ?>active<?php endif; ?>">
						<a href="javascript:;"><i class="nav_icon nav_ywgl"></i>代理管理<i class="jt"></i></a>
						<dl class="towlave" <?php if(checknav('zchy.html') == 1 or checknav('jbsj.html') == 1 or checknav('wdhy.html') == 1 ): ?>style="display: block;"<?php endif; ?>>
							<dd><a href="/user/zchy.html">注册会员</a></dd>
							<dd><a href="/user/jbsj.html">成为代理</a></dd>
							<dd><a href="/user/wdhy.html">我的会员</a></dd>
						</dl>
					</li>
					<li class="nav_list <?php if(checknav('jjmx.html') == 1 or checknav('wycz.html') == 1 or checknav('hbzh.html') == 1 or checknav('top_up.html') == 1 or checknav('txgl.html') == 1 ): ?>active<?php endif; ?>">
						<a href="javascript:;"><i class="nav_icon nav_tdgl"></i>我的财务<i class="jt"></i></a>
						<dl class="towlave" <?php if(checknav('jjmx.html') == 1 or checknav('wycz.html') == 1 or checknav('hbzh.html') == 1 or checknav('top_up.html') == 1 or checknav('txgl.html') == 1 ): ?>style="display: block;"<?php endif; ?>>
							<dd><a href="/user/jjmx.html">奖金明细</a></dd>
							<dd><a href="/user/wycz.html">我要投资</a></dd>
							<dd><a href="/user/top_up.html">我要充值</a></dd>
							<dd><a href="/user/hbzh.html">货币转换</a></dd>
							<dd><a href="/user/txgl.html">提现管理</a></dd>
						</dl>
					</li>
					<li class="nav_list <?php if(checknav('xwgg.html') == 1 or checknav('wyly.html') == 1 or checknav('lyxq.html') == 1 ): ?>active<?php endif; ?>">
						<a href="javascript:;"><i class="nav_icon nav_cwgl"></i>系统公告<i class="jt"></i></a>
						<dl class="towlave" <?php if(checknav('xwgg.html') == 1 or checknav('wyly.html') == 1 or checknav('lyxq.html') == 1 ): ?>style="display: block;"<?php endif; ?>>
							<dd><a href="/user/xwgg.html">新闻公告</a></dd>
							<dd><a href="/user/wyly.html">我要留言</a></dd>
							<dd><a href="/user/lyxq.html">留言列表</a></dd>
						</dl>
					</li>
				</ul>
				<div class="exit_box text_c">
					<a href="javascript:;">
						<p class="exit_icon"><img src="/Public/Dt/img/exit.png"/></p>
						<p><a href="/user/logout.html">安全退出</a></p>
					</a>
				</div>
			</div>
		</div>

		<div class="right_box">
			<div class="topbar">
				<div class="float_r topbar_user">
					<div class="user_box">
						<div class="tx_img">
							<img src="/Public/Dt/img/touxiang.png">
						</div>
						<div class="text_l user_info">
							<p><?php echo (session('username')); ?></p>
						</div>
					</div>
				</div>
				<div class="nav_btn visible-xs-block float_r">
					<i class="glyphicon glyphicon-th-list"></i>
				</div>
			</div>

			
	<div class="right_main">
		<div class="container-fluid">
			<div class="row">
				<div class="col-md-6">
					<div class="index_set sm_box">
						<div class="panel panel-default">
						  <div class="panel-heading"><i class="inde_icon"></i>账号信息</div>
						  <div class="panel-body">
						    <div class="qb_box">
						    	<div class="user_info">
						    		<div class="my_pho"></div>
						    		<div>投资金额：<span class="color_huang"><?php echo ($user["investmoney"]); ?></span></div>
						    		<div class="tz_box"><a href="/user/wycz">投资</a>&nbsp;<a href="/user/top_up">充值</a></div>
						    	</div>
						    	<div class="user_qb">
						    		<div class="row">
						    			<div class="col-sm-4 col-xs-6">累计分红：<span class="color_huang"><?php echo (sprintf("%.2f",$user["z_fh"])); ?></span></div>
						    			<div class="col-sm-4 col-xs-6">本月分红：<span><?php echo ($user["yue_fh"]); ?></span></div>
						    			<div class="col-sm-4 col-xs-6">直推人数：<span><?php echo ($user["ztnum"]); ?></span></div>
						    			<div class="col-sm-4 col-xs-6">推荐金额：<span><?php echo ($user["zt_price"]); ?></span></div>
						    			<div class="col-sm-4 col-xs-6">组织人数：<span><?php echo ($user["z_usernum"]); ?></span></div>
						    			<div class="col-sm-4 col-xs-6">直推奖金：<span><?php echo ($user["zhijj"]); ?></span></div>
						    		</div>
						    	</div>
						    </div>
						  </div>
						</div>
					</div>
				</div>
				<div class="col-md-6">
					<div class="index_set sm_box">
						<div class="panel panel-default">
						  <div class="panel-heading"><i class="inde_icon icon_tglj"></i>推广链接</div>
						  <div class="panel-body text-center">
						    <div class="tgUrl">http://<?php echo ($domain); ?>/index/register?tj=<?php echo (session('username')); ?></div>
						    <div class="tgEwm">
						    	<div class="imgBox">
						    		<img src="/user/qrcode?url=<?php echo ($domain); ?>/index/register?tj=<?php echo (session('username')); ?>"/>
						    	</div>
						    </div>
						  </div>
						</div>
					</div>
				</div>
			</div>
			
			<div class="row">
				<div class="col-sm-12">
					<div class="index_set">
						<div class="panel panel-default">
						  <div class="panel-heading">
						  	<i class="inde_icon icon_mrfh"></i>每日分红：<span class="color_red"><?php echo ($user["tian_fh"]); ?></span>
						  	<div class="sect_look">本月分红</div>
						  </div>
						  <div class="panel-body">
						    <div id="container" style="width:100%;height:400px"></div>
						  </div>
						</div>
					</div>
				</div>

				<div class="col-sm-12">
					<div class="index_set">
						<div class="panel panel-default">
						  <div class="panel-heading">
						  	<i class="inde_icon icon_mrfh"></i>每日分红：<span class="color_red"><?php echo ($user["tian_fh"]); ?></span>
						  	<div class="sect_look">每月分红</div>
						  </div>
						  <div class="panel-body">
						    <div id="containerz" style="width:100%;height:400px"></div>
						  </div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>

		</div>

		<script type="text/javascript" charset="utf-8" src="/Public/Dt/libs/bootstrap/js/jquery.min.js?v=0.0.1"></script>
		<script type="text/javascript" charset="utf-8" src="/Public/Dt/js/jxmc.js?v=0.0.1"></script>
		<script type="text/javascript" charset="utf-8" src="/Public/Dt/libs/bootstrap/js/bootstrap.min.js?v=0.0.1"></script>

		
	<script type="text/javascript" charset="utf-8" src="/Public/Dt/libs/highstock/highcharts.js"></script>
	<script type="text/javascript" charset="utf-8" src="/Public/Dt/libs/highstock/exporting.js"></script>
	
	<script>
		new Highcharts.Chart('container', {
		    title: {
		        text: '每日走势图',
		        x: -20
		    },
		    xAxis: {
		        //categories: ['一月', '二月', '三月', '四月', '五月', '六月']
		        categories: eval("<?php echo ($string1); ?>")
		    },
		    yAxis: {
		        title: {
		            text: '单位 (元)'
		        },
		        plotLines: [{
		            value: 0,
		            width: 1,
		            color: '#808080'
		        }]
		    },
		    tooltip: {
		        valueSuffix: ' 元'
		    },
		    legend: {
		        layout: 'vertical',
		        align: 'center',
		        verticalAlign: 'bottom',
		        borderWidth: 0,
		        y: 20
		    },
		    //credits 隐藏插件信息
            credits: {
                enabled:false
            },
            //exporting 隐藏导出右上角导出图片按钮
            exporting: {
                enabled: false
            },
		    series: [{
		        name: '静态分红',
		        //data: [7.0, 6.9, 9.5, 14.5, 18.2]
		        data: eval("<?php echo ($string2); ?>")
		    }, {
		        name: '动态分红',
		        //data: [-0.2, 0.8, 5.7, 11.3, 17.0, 22.0]
		        data: eval("<?php echo ($string3); ?>")
		    }]
		});

		new Highcharts.Chart('containerz', {
			chart: {
	            type: 'column'
	        },
		    title: {
		        text: '各月收入图',
		        x: -20
		    },
		    subtitle: {
	            text: null
	        },
		    xAxis: {
		        //categories: ['一月', '二月', '三月', '四月', '五月', '六月']
		        categories: eval("<?php echo ($string4); ?>"),
	            crosshair: true
		    },
		    yAxis: {
		        min: 0,
	            title: {
	                text: '单位 (元)'
	            }
		    },
		    tooltip: {
		        headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
	            pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
	            '<td style="padding:0"><b>{point.y:.1f} 元</b></td></tr>',
	            footerFormat: '</table>',
	            shared: true,
	            useHTML: true
		    },
		    plotOptions: {
	            column: {
	                pointPadding: 0.2,
	                borderWidth: 0
	            }
	        },
            credits: {
                enabled:false
            },
            //exporting 隐藏导出右上角导出图片按钮
            exporting: {
                enabled: false
            },
		    series: [{
		        name: '静态分红',
		        //data: [7.0, 6.9, 9.5, 14.5, 18.2]
		        data: eval("<?php echo ($string5); ?>")
		    }, {
		        name: '动态分红',
		        //data: [-0.2, 0.8, 5.7, 11.3, 17.0, 22.0]
		        data: eval("<?php echo ($string6); ?>")
		    }]
		});
	</script>

	</body>
</html>